import React, { Component } from 'react'

export default class Item extends Component {
  render() {
    const { user } = this.props

    return (
      <div className="col-md-4">
        <div className="card">
          <div className="card-body">
            <a rel="noreferrer" href={user.html_url} target="_blank">
              <img src={user.avatar_url} alt="" style={{ width: '100px' }} />
            </a>
            <p>{user.login}</p>
          </div>
        </div>
      </div>
    )
  }
}
